#include<stdio.h>
#include<pthread.h>

pthread_mutex_t mutex;

void* route(void* arg)
{
  pthread_mutex_lock(&mutex);
  pthread_mutex_lock(&mutex);
pthread_mutex_unlock(&mutex);
pthread_exit((void*)0);
}
int main()
{
  pthread_t tid;
  pthread_mutex_init(&mutex,NULL);
  pthread_create(&tid,NULL,route,NULL);


  pthread_join(tid,NULL);
  pthread_mutex_destroy(&mutex);
  return 0;
}
